package com.bookpavilion.chat.client;

import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("bp-user")
public interface UserClient {
    @RequestMapping(value="/user/{id}",method= RequestMethod.GET)
    public Result findById(@PathVariable(value = "id")String id);
}
